#include<stdio.h>

int main()
{
    int n = 0, k = 0;
    scanf("%d", &n);
    scanf("%d", &k);
    printf("%d", k - n);
    return 0;
}
